package com.hotel.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hotel.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author Lin
 * @since 2022-06-13
 */
public interface OrdersService extends IService<Orders> {

    IPage<Orders> getOrderList(String number, String nickName, String checkoutTime, Integer status, Integer current, Integer size);

    List<Orders> getOrderDetail(String id);

    int deleteOrder(String orderNumber);

    int updateOrderRemark(String orderNumber,String remark);

    int updateOrderStatus(String orderNumber);

    List<Orders> getUnpaidOrder();

    int deleteByOrderNumber(String orderNumber);


}
